package com.sskj.api.vo.srs;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "服务状态信息")
@Data
public class SummariesSelfInfo {

    @Schema(description = "版本号")
    private String version;

    @Schema(description = "主进程ID")
    @JsonProperty("pid")
    private Integer pid;

    @Schema(description = "父进程ID")
    @JsonProperty("ppid")
    private Integer ppid;

    @Schema(description = "启动命令行参数")
    @JsonProperty("argv")
    private String argv;

    @Schema(description = "当前工作目录")
    @JsonProperty("cwd")
    private String cwd;

    @Schema(description = "当前使用的内存")
    @JsonProperty("mem_kbyte")
    private Integer memKbyte; // 原为 String，应改为 Integer

    @Schema(description = "占系统总内存百分比")
    @JsonProperty("mem_percent")
    private Float memPercent;

    @Schema(description = "当前CPU占用率")
    @JsonProperty("cpu_percent")
    private Float cpuPercent;
    
    @Schema(description = "已运行时间")
    @JsonProperty("srs_uptime")
    private Integer srsUptime;
}
